package com.xbongbong.pro.listbatch.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 上下架
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/22 20:15
 * @since v1.0
 */
@Getter
@Setter
public class OnlineDTO extends ListBatchDTO{
    /**
     * 上下架 1上架0下架
     */
    @Max(value = 1)
    @Min(value = 0)
    @NotNull(message = "online {javax.validation.constraints.NotNull.message}")
    private Integer online;
}
